﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Javascript KeyCode参照表</title>
</head>
<body>
    <table class="" border="0" cellspacing="1" cellpadding="1" bgcolor="#999999" style="font-family:Arial; font-size:14px; color:rgb(51,51,51); line-height:26px; width:694px">
        <tbody>
            <tr align="center" bgcolor="#ffffff">
                <td colspan="8"><strong>字母和数字键的键码值(keyCode)</strong></td>
            </tr>
            <tr align="center" bgcolor="#dddddd">
                <td>按键</td>
                <td>键码</td>
                <td>按键</td>
                <td>键码</td>
                <td>按键</td>
                <td>键码</td>
                <td>按键</td>
                <td>键码</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>A</td>
                <td>65</td>
                <td>J</td>
                <td>74</td>
                <td>S</td>
                <td>83</td>
                <td>1</td>
                <td>49</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>B</td>
                <td>66</td>
                <td>K</td>
                <td>75</td>
                <td>T</td>
                <td>84</td>
                <td>2</td>
                <td>50</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>C</td>
                <td>67</td>
                <td>L</td>
                <td>76</td>
                <td>U</td>
                <td>85</td>
                <td>3</td>
                <td>51</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>D</td>
                <td>68</td>
                <td>M</td>
                <td>77</td>
                <td>V</td>
                <td>86</td>
                <td>4</td>
                <td>52</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>E</td>
                <td>69</td>
                <td>N</td>
                <td>78</td>
                <td>W</td>
                <td>87</td>
                <td>5</td>
                <td>53</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>F</td>
                <td>70</td>
                <td>O</td>
                <td>79</td>
                <td>X</td>
                <td>88</td>
                <td>6</td>
                <td>54</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>G</td>
                <td>71</td>
                <td>P</td>
                <td>80</td>
                <td>Y</td>
                <td>89</td>
                <td>7</td>
                <td>55</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>H</td>
                <td>72</td>
                <td>Q</td>
                <td>81</td>
                <td>Z</td>
                <td>90</td>
                <td>8</td>
                <td>56</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>I</td>
                <td>73</td>
                <td>R</td>
                <td>82</td>
                <td>0</td>
                <td>48</td>
                <td>9</td>
                <td>57</td>
            </tr>
        </tbody>
    </table>
    <table class=" FCK__ShowTableBorders   " border="0" cellspacing="1" cellpadding="1" bgcolor="#999999" style="font-family:Arial; font-size:14px; color:rgb(51,51,51); line-height:26px; width:694px">
        <tbody>
            <tr align="center" bgcolor="#ffffff">
                <td colspan="4"><strong>数字键盘上的键的键码值(keyCode)</strong></td>
                <td colspan="4"><strong>功能键键码值(keyCode)</strong></td>
            </tr>
            <tr align="center" bgcolor="#dddddd">
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>0</td>
                <td>96</td>
                <td>8</td>
                <td>104</td>
                <td>F1</td>
                <td>112</td>
                <td>F7</td>
                <td>118</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>1</td>
                <td>97</td>
                <td>9</td>
                <td>105</td>
                <td>F2</td>
                <td>113</td>
                <td>F8</td>
                <td>119</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>2</td>
                <td>98</td>
                <td>*</td>
                <td>106</td>
                <td>F3</td>
                <td>114</td>
                <td>F9</td>
                <td>120</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>3</td>
                <td>99</td>
                <td>+</td>
                <td>107</td>
                <td>F4</td>
                <td>115</td>
                <td>F10</td>
                <td>121</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>4</td>
                <td>100</td>
                <td>Enter</td>
                <td>108</td>
                <td>F5</td>
                <td>116</td>
                <td>F11</td>
                <td>122</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>5</td>
                <td>101</td>
                <td>-</td>
                <td>109</td>
                <td>F6</td>
                <td>117</td>
                <td>F12</td>
                <td>123</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>6</td>
                <td>102</td>
                <td>.</td>
                <td>110</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>7</td>
                <td>103</td>
                <td>/</td>
                <td>111</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </tbody>
    </table>
    <table class=" FCK__ShowTableBorders   " border="0" cellspacing="1" cellpadding="1" bgcolor="#999999" style="font-family:Arial; font-size:14px; color:rgb(51,51,51); line-height:26px; width:694px">
        <tbody>
            <tr align="center" bgcolor="#ffffff">
                <td colspan="8"><strong>控制键键码值(keyCode)</strong></td>
            </tr>
            <tr align="center" bgcolor="#dddddd">
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>BackSpace</td>
                <td>8</td>
                <td>Esc</td>
                <td>27</td>
                <td>Right Arrow</td>
                <td>39</td>
                <td>-_</td>
                <td>189</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Tab</td>
                <td>9</td>
                <td>Spacebar</td>
                <td>32</td>
                <td>Dw Arrow</td>
                <td>40</td>
                <td>.&gt;</td>
                <td>190</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Clear</td>
                <td>12</td>
                <td>Page Up</td>
                <td>33</td>
                <td>Insert</td>
                <td>45</td>
                <td>/?</td>
                <td>191</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Enter</td>
                <td>13</td>
                <td>Page Down</td>
                <td>34</td>
                <td>Delete</td>
                <td>46</td>
                <td>`~</td>
                <td>192</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Shift</td>
                <td>16</td>
                <td>End</td>
                <td>35</td>
                <td>Num Lock</td>
                <td>144</td>
                <td>[{</td>
                <td>219</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Control</td>
                <td>17</td>
                <td>Home</td>
                <td>36</td>
                <td>;:</td>
                <td>186</td>
                <td>/|</td>
                <td>220</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Alt</td>
                <td>18</td>
                <td>Left Arrow</td>
                <td>37</td>
                <td>=+</td>
                <td>187</td>
                <td>]}</td>
                <td>221</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>Cape Lock</td>
                <td>20</td>
                <td>Up Arrow</td>
                <td>38</td>
                <td>,&lt;</td>
                <td>188</td>
                <td>'"</td>
                <td>222</td>
            </tr>
        </tbody>
    </table>
    <table class=" FCK__ShowTableBorders   " border="0" cellspacing="1" cellpadding="1" bgcolor="#999999" style="font-family:Arial; font-size:14px; color:rgb(51,51,51); line-height:26px; width:694px">
        <tbody>
            <tr align="center" bgcolor="#ffffff">
                <td colspan="8"><strong>多媒体键码值(keyCode)</strong></td>
            </tr>
            <tr align="center" bgcolor="#dddddd">
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
                <td width="10%">按键</td>
                <td width="10%">键码</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>音量加</td>
                <td>175</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>音量减</td>
                <td>174</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>停止</td>
                <td>179</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>静音</td>
                <td>173</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>浏览器</td>
                <td>172</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>邮件</td>
                <td>180</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>搜索</td>
                <td>170</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr align="center" bgcolor="#ffffff">
                <td>收藏</td>
                <td>171</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </tbody>
    </table>
</body>
</html>